CHECK FOR UNDERSTANDING: Here are a few questions for you to see what you've learned!

A for loop is a type of loop that runs a set of commands for a certain number of times in a range.

This program has two sprites that do the same thing but one of them uses a for loop.

  • Click Run to watch each hedgehog draw a hexagon (a six sided shape).
  • Answer the questions by clicking on the correct answer. Then click Submit and Next to move on.

    To navigate the page using the TAB key, first press ESC to exit the code editor.

    # THIS ACTIVITY IS IN PREVIEW ONLY MODE
    • Run Code
    • Submit Work
    • Next Activity
    • Show Console
    • Reset Code Editor
    • Codesters How To (opens in a new tab)